<template>
  <Form inline>
    <FormItem>
      <RadioGroup v-model="logdate" type="button" class="ivu-mr-8">
        <Radio label="近一个月" />
        <Radio label="近三个月" />
        <Radio label="近半年" />
      </RadioGroup>
      <DatePicker type="daterange" v-width="200" :start-date="startDate" :options="detaOption" v-model="date" placeholder="请选择操作日期" />
    </FormItem>
    <FormItem>
      <Input placeholder="请输入操作人姓名" v-width="260" />
    </FormItem>
     <FormItem>
      <Input placeholder="请输入操作内容，支持模糊搜索" v-width="260" />
    </FormItem>
  </Form>
</template>
<script>
    export default {
        data () {
            return {
                logdate: '近一个月',
                startDate: new Date(),
                date: '',
                detaOption: {
                    disabledDate (pick) {
                        const curDate = new Date();
                        let reval = 0;
                        if (pick > curDate) {
                            reval = 1;
                        }
                        return reval
                    }
                }
            }
        }
    }
</script>
